import request from '@u/request'
// api.it120.cc
// 获取分类
const getTrades = (params = {}) => {
  return request.get('/getTrade', {
    params
  })
}
// 获取商业区详情信息
const getInfo = (params = {}) => {
  return request.get('/getInfo', {
    params
  })
}
// 修改商业区信息
const updateInfo = (params = {}) => {
  return request.put('/updateInfo', params)
}
// 新增商业区成功
const addInfo = (params = {}) => {
  return request.post('/addInfo', params)
}
// 删除商业区成功
const deleteInfo = (params = {}) => {
  return request.delete('/deleteInfo', {
    params
  })
}

export { getTrades, getInfo, updateInfo, addInfo, deleteInfo }
